package com.nftturbouser.facade;

import com.nftturboapi.user.request.*;
import com.nftturboapi.user.response.UserOperatorResponse;
import com.nftturboapi.user.response.UserQueryResponse;
import com.nftturboapi.user.response.data.UserInfo;
import com.nftturboapi.user.service.UserFacadeService;
import com.nftturbobase.response.PageResponse;
import com.nftturborpc.facade.Facade;
import com.nftturbouser.domain.service.UserService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@DubboService(version = "1.0.0")
@Service
public class UserFacadeServiceImpl implements UserFacadeService {
    @Autowired
    private UserService userService;

    @Override
    public UserQueryResponse<UserInfo> query(UserQueryRequest userQueryRequest) {
        return null;
    }

    @Override
    public PageResponse<UserInfo> pageQuery(UserPageQueryRequest userPageQueryRequest) {
        return null;
    }

    @Facade
    @Override
    public UserOperatorResponse register(UserRegisterRequest userRegisterRequest) {
        return userService.register(userRegisterRequest.getTelephone(), userRegisterRequest.getInviteCode());

    }

    @Override
    public UserOperatorResponse modify(UserModifyRequest userModifyRequest) {
        return null;
    }

    @Override
    public UserOperatorResponse auth(UserAuthRequest userAuthRequest) {
        return null;
    }

    @Override
    public UserOperatorResponse active(UserActiveRequest userActiveRequest) {
        return null;
    }
}
